﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PageLibrary.Page.Elements;

namespace PageLibrary
{
    class PaymentPage_BE:PaymentPage
    {
        public PaymentPage_BE()
        {
            Elements.Add(new Select<PaymentPageElements>(PaymentPageElements.CardType, Selector.GetTestDataByKey("PaymentFillingPage_CardTypeField")));
            Elements.Add(new Input<PaymentPageElements>(PaymentPageElements.CardNumber, Selector.GetTestDataByKey("PaymentFillingPage_CardNumberField")));
            Elements.Add(new Input<PaymentPageElements>(PaymentPageElements.CardExpMonth, Selector.GetTestDataByKey("PaymentFillingPage_CardExpirationDateMonth")));
            Elements.Add(new Input<PaymentPageElements>(PaymentPageElements.CardExpYear, Selector.GetTestDataByKey("PaymentFillingPage_CardExpirationDateYear")));
            Elements.Add(new Input<PaymentPageElements>(PaymentPageElements.CVV, Selector.GetTestDataByKey("PaymentPage_CardPrivateCVVNumber")));
            Elements.Add(new Input<PaymentPageElements>(PaymentPageElements.UserName, Selector.GetTestDataByKey("PaymentFillingPage_UserNameField")));
            Elements.Add(new Input<PaymentPageElements>(PaymentPageElements.UserSecondName, Selector.GetTestDataByKey("PaymentFillingPage_UserSecondNameField")));
            Elements.Add(new Input<PaymentPageElements>(PaymentPageElements.UserStreet, Selector.GetTestDataByKey("PaymentFillingPage_AddressStreetField")));
            Elements.Add(new Input<PaymentPageElements>(PaymentPageElements.UserCity, Selector.GetTestDataByKey("PaymentFillingPage_AddressCityField")));
            Elements.Add(new Input<PaymentPageElements>(PaymentPageElements.UserState, Selector.GetTestDataByKey("PaymentFillingPage_AddressStateField")));
            Elements.Add(new Input<PaymentPageElements>(PaymentPageElements.UserZipcode, Selector.GetTestDataByKey("PaymentFillingPage_AddressZipCodeField")));
            Elements.Add(new Select<PaymentPageElements>(PaymentPageElements.UserCountry, Selector.GetTestDataByKey("PaymentPage_CountryChoiceSelect")));
            Elements.Add(new Input<PaymentPageElements>(PaymentPageElements.UserArea, Selector.GetTestDataByKey("PaymentFillingPage_AddressAreaField")));
            Elements.Add(new Input<PaymentPageElements>(PaymentPageElements.UserPhone, Selector.GetTestDataByKey("PaymentFillingPage_AddressPhoneField")));
            Elements.Add(new Input<PaymentPageElements>(PaymentPageElements.UserExt, Selector.GetTestDataByKey("PaymentFillingPage_AddressExtField")));
            Elements.Add(new Input<PaymentPageElements>(PaymentPageElements.Email, Selector.GetTestDataByKey("PaymentPage_UserEmailFleld")));
            Elements.Add(new Input<PaymentPageElements>(PaymentPageElements.EmailConfirmation, Selector.GetTestDataByKey("PaymentPage_UserEmailConfirmationFleld")));
            Elements.Add(new Link<PaymentPageElements>(PaymentPageElements.Confirm, Selector.GetTestDataByKey("PaymentFillingPage_SubmitPurchaseButton")));
        }
    }
}
